﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace ly.Web.QianTai
{
    public partial class ZuoPinZuiXin : System.Web.UI.Page
    {
        ly.BLL.UserInfo userBll = new BLL.UserInfo();
        ly.BLL.WorkInfo workBll = new BLL.WorkInfo();
        ly.Model.WorkInfo workModel = new Model.WorkInfo();
        protected void Page_Load(object sender, EventArgs e)
        {
            BindData();
        }



        private void BindData()
        {

            string strwhere = "WorkVerify = '审核通过'";
            DataTable dt = workBll.GetList(strwhere).Tables[0];
            PagedDataSource ps = new PagedDataSource();
            ps.DataSource = dt.DefaultView;
            ps.AllowPaging = true;
            //最新作品
            dlist.DataSource = ps;
            dlist.DataBind();
        }
    }
}